From: IOhannes m zmölnig Date: Thu, 11 Feb 2016 11:48:07 +0000 (+0100) Subject: rules to (un)apply some patches manually X-Git-Tag: archive/raspbian/5.4.5_ds0-1+rpi1~1^2~285 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=b8f7b9265a7c76eb1c05e8a1dba5f649e0e6d910;p=juce.git rules to (un)apply some patches manually --- diff --git a/debian/rules b/debian/rules index e1642d38..73294202 100755 --- a/debian/rules +++ b/debian/rules @@ -45,3 +45,13 @@ clean:: rm -rf extras/Introjucer/Builds/Linux/build rm -rf $(BUILDDATE_HEADER) + +.PHONY: patch unpatch +PATCHARGS=-f -p1 -r - --no-backup-if-mismatch +PATCHPATTERN=^\#MANUAL\# +patch:: + cat $(CURDIR)/debian/patches/series | sed -e '/$(PATCHPATTERN)/!d' -e 's|$(PATCHPATTERN)||' \ + | while read p; do patch $(PATCHARGS) -i $(CURDIR)/debian/patches/$$p; done +unpatch:: + cat $(CURDIR)/debian/patches/series | sed -e '/$(PATCHPATTERN)/!d' -e 's|$(PATCHPATTERN)||' \ + | while read p; do patch $(PATCHARGS) -i $(CURDIR)/debian/patches/$$p -R; done